export default {
    state: {
        n: 50,
        pa: [],
        ad: 0,
        num:0
    },
    mutations: {
        fr(state, item) {
            item.i=true
            item.o++
            state.pa
            state.num=state.pa.length*item.price
        },
        fd(state, item) {
            state.num=state.pa.length*item.price
            if(item.o<1){
             item.i=false
            }
        }
    },
    getters: {
     
    }
}